package org.sninwo.lnbook.book.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.sninwo.lnbook.base.hibernate.IdEntity;

@Entity
@Table(name = "book_type")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class BookType extends IdEntity {
	private String name;
	private int seq;

	public BookType(){}
	
	public BookType(String name){
		this.name = name;
		this.seq = 1;
	}
	
	public BookType(String name, int seq){
		this.name = name;
		this.seq = seq;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}
}
